package com.fixme4trade.domain;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;


@Entity
public class CredictCardPayment extends Payment {	
	
	private static final long serialVersionUID = 1L;
	
	@OneToOne(cascade = CascadeType.REFRESH, optional=true, fetch=FetchType.EAGER, orphanRemoval=false)
	@JoinColumn(name="credict_card_id", nullable=false)
	private CredictCard credictCard;
	
	public CredictCardPayment() {
		
	}

	public CredictCard getCredictCard() {
		return credictCard;
	}

	public void setCredictCard(CredictCard credictCard) {
		this.credictCard = credictCard;
	}
}
